.br-cascader {
  position: relative;
  width: auto;
  cursor: pointer;
  &__value {
    position: relative;
    display: inline-block;
    width: $cascader-width;
    height: $input-normal-height;
    padding: $cascader-input-padding;
    border: 1px solid $border-color;
    background-color: white;
    line-height: $input-normal-height;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    &-tips {
      color: $cascader-tips-color;
    }
    &-default {
      border-bottom-color: $border-color;
    }
    &-icon {
      position: absolute;
      right: 4px;
      color: $icon-gray-color;
      transform: scale(.8);
    }
  }
  &__menu-wrapper {
    width: $cascader-width;
    background-color: $background-white-color;
    border: 1px solid $border-color;
  }
  &__tabs {
    display: table;
    position: relative;
    width: 100%;
    height: $cascader-tab-height;
    white-space: nowrap;
    background-color: $background-color;
    color: $text-secondary-color;
  }
  &__tab {
    position: relative;
    display: table-cell;
    line-height: $cascader-tab-height;
    text-align: center;
    cursor: pointer;
    &-active {
      background-color: white;
      font-weight: bold;
      color: $primary-color;
    }
    &-cantClick {
      color: $text-help-color;
      cursor: not-allowed;
    }
  }
   &__options {
    max-height: $cascader-menu-max-height - $cascader-tab-height;
    min-height: $cascader-menu-min-height - $cascader-tab-height;
    padding: $space-of-segments;
    overflow-y: auto;
    &-loading {
      height: 100px;
      .br-spinner {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, 0);
      }
    }
    &-empty {
      padding: $cascader-option-empty-padding;
      text-align: center;
      &-icon {
        color: $cascader-tips-color;
      }
      &-text {
        color: $text-secondary-color;
      }
    }
  }
  &__option {
    display: inline-block;
    padding: $cascader-option-margin;
    white-space: nowrap;
    cursor: pointer;
    &-active, &:hover {
      color: $primary-color;
    }
  }
  &__popup-wrapper {
    margin-top: $base-gap-of-y / 2;
    .br-dropdown__popup {
      box-shadow: $cascader-popup-box-shadow;
    }
  }
}
